let  baseURL;
let  origin;
// 默认的excle下载地址
if (!window.location.origin) {
    window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
}
origin = window.location.origin;
if(process.env.VUE_APP_CURRENTMODE){
  switch (process.env.VUE_APP_CURRENTMODE){
    case 'test':
          // baseURL = '//om-console.canpoint.com.cn/v1.0';
          //   baseURL = 'http://om-console.canpoint.com.cn:8000';
          baseURL = '//fdtest.canpoint.net';
          break;
      case 'production': 
          baseURL = '//fudao.canpoint.net';
          break;  
      default:
          baseURL = '//fudao.canpoint.net';
  }
}else{
  switch (process.env.NODE_ENV){
    case 'development':
        // baseURL = 'http://om-console.canpoint.com.cn:8000';
        // baseURL = '//192.168.1.41:9999';
        // baseURL = '//192.168.1.238:5000';
        // baseURL = '//192.168.1.49:15000';
        // baseURL = '//192.168.1.238:5000';   //测试
        baseURL = '//127.0.0.1:9900';   //测试
        // baseURL = 'https://fudao.canpoint.net';      //正式
        break;
    default:
        baseURL = '//127.0.0.1:9900';
  }
}
export  {baseURL,origin};

